package com.chzc.fm.duotin.bean.home;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/6/27.
 */
public class HomePlayer1Bean {


    private LatestCommentsBean latest_comments;
    private ContentBean content;
    private PodcastBean podcast;
    private AlbumBean album;

    public static HomePlayer1Bean objectFromData(String str) {

        return new Gson().fromJson(str, HomePlayer1Bean.class);
    }

    public static List<HomePlayer1Bean> arrayHomePlayer1BeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<HomePlayer1Bean>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public ContentBean getContent() {
        return content;
    }

    public void setContent(ContentBean content) {
        this.content = content;
    }

    public AlbumBean getAlbum() {
        return album;
    }

    public void setAlbum(AlbumBean album) {
        this.album = album;
    }

    public PodcastBean getPodcast() {
        return podcast;
    }

    public void setPodcast(PodcastBean podcast) {
        this.podcast = podcast;
    }

    public LatestCommentsBean getLatest_comments() {
        return latest_comments;
    }

    public void setLatest_comments(LatestCommentsBean latest_comments) {
        this.latest_comments = latest_comments;
    }

}
